package com.jr.service.impl;

import com.jr.entity.Flights;
import com.jr.mapper.FlightsMapper;
import com.jr.pojo.FlightInfo;
import com.jr.pojo.Search;
import com.jr.service.IFlightsService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-10-05
 */
@Service
public class FlightsServiceImpl  implements IFlightsService {
  @Autowired
  private FlightsMapper flightsMapper;

    @Override
    public ArrayList<FlightInfo> findAll(Search search) {
        return flightsMapper.selectAll(search);
    }
}
